﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Model.Project;

using Jzy.DAL.Project;
using System.Data;
using Frame.Lib.Core.Base;

namespace Jzy.BLL.Project
{
    public class TaskScheduleBO:CommonOperate<TaskScheduleInfo>
    {
        private TaskScheduleDAL _schedule;
        protected override BaseDAL DAL
        {
            get
            {
                return _schedule;
            }
        }
        public TaskScheduleBO(string taskID)
            : base("PrjTaskSchedule")
        {
            _schedule = new TaskScheduleDAL(taskID);
        }


        public string GetLastID()
        {
            string id = _schedule.GetLastID();
            return id;
        }

        public override DataTable GetDataTable()
        {
            return _schedule.GetDataTable();
        }

        public static DataTable GetDataTableByPrjID(string prjID)
        {
            return TaskScheduleDAL.GetDataTableByPrjID(prjID);
        }
    }
}
